package day08.synch02._01;

/**
 * <>
 * <详细描述>
 *
 * @Author WANG.SONG.
 * @Date 2019/3/5 0005 22:38
 * @see
 */
public class ThreadA extends Thread {
    private Task task;
    public ThreadA(Task task){
        this.task = task;
    }
    @Override
    public void run() {
        super.run();
        CommonUtils.begin1 = System.currentTimeMillis();
        task.doLongTime();
        CommonUtils.end1 = System.currentTimeMillis();
    }
}
